package org.inspursc.s0517.health.common.service;

import org.inspursc.s0517.health.common.dto.SysUserDTO;
import org.inspursc.s0517.health.common.entity.SysUser;
import org.inspursc.s0517.health.common.vo.SysUserVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author B_Dream
 * @date 2018/5/29 20:02
 */

public interface SysUserService {

    SysUserDTO save(SysUserDTO user, List<Integer> roleIds);

    SysUserVO findById(Integer id);

    SysUser findByUId(Integer id);

    boolean deleteById(Integer id);

    List<SysUserVO> findAll();

    Page<SysUser> findByUserNameLike(String username, Pageable pageable);

    SysUserVO findByUserName(String username);

    List<SysUserVO> findByRoleId(Integer roleId);
}
